package com.example.demo.dao;

import com.example.demo.model.dish;
import com.example.demo.model.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface dishDAO {
    List<dish> listAllDishes();
    int add(dish dish);

    int update(dish dish);

    int delete(@Param("id") int id);

    dish findByDishName(@Param("dishName") String dishName);
}
